package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Department;
import cn.wolfcode.crm.domain.Menu;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IMenuService {
    void deleteByPrimaryKey(Long id);

    void saveOrUpdate(Menu entity);

    Menu selectByPrimaryKey(Long id);

    List<Menu> selectAll();


    PageResult query(QueryObject qo);

    List<Menu> getRootMenu();

    void selectPermission(List<Menu> menus);
}
